package com.qzdsoft.erpcloud.vo.com;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qzdsoft.vo.com.SupplierCustomerCatagoryType;
import com.qzdsoft.vo.pu.SupplierCustomerType;
/**
 * 供应商客户信息vo
 * @author pc-20170422
 *
 */
public class SupplierCustomerInfo {
	private Integer id;
	private Integer company_id;
	private Integer type;
	private String typeName;
	private String no;
	private String name;
	private Integer catagory;
	private String catagoryName;
	private String address;
	private String phone;
	private Integer department_id;
	private Integer staff_id;
	private String corporate;
	private String bank;
	private String bank_account;
	private String tax_rate;
	private String business_license;
	private String remark;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date ctime;
	private String companyName;
	private String departmentName;
	private String staffName;
	private Integer advance_balance;
	private Integer payable_balance;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCompany_id() {
		return company_id;
	}
	public void setCompany_id(Integer company_id) {
		this.company_id = company_id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
		if(type.equals(Integer.parseInt(SupplierCustomerType.SUPPLIER_CODE))) {
	  		 this.typeName = SupplierCustomerType.SUPPLIER.getValue();
	  		}else{
	  		 this.typeName = SupplierCustomerType.CUSTOMER.getValue();
	  		}
	}
	public String getTypeName() {
		return typeName;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getCatagory() {
		return catagory;
	}
	public void setCatagory(Integer catagory) {
		this.catagory = catagory;
		if(catagory.equals(Integer.parseInt(SupplierCustomerCatagoryType.IN_LAND_CODE))) {
			this.catagoryName = SupplierCustomerCatagoryType.IN_LAND.getValue();
		}else{
			this.catagoryName = SupplierCustomerCatagoryType.ABROAD.getValue();
		}
	}
	public String getCatagoryName() {
		return catagoryName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getDepartment_id() {
		return department_id;
	}
	public void setDepartment_id(Integer department_id) {
		this.department_id = department_id;
	}
	public Integer getStaff_id() {
		return staff_id;
	}
	public void setStaff_id(Integer staff_id) {
		this.staff_id = staff_id;
	}
	public String getCorporate() {
		return corporate;
	}
	public void setCorporate(String corporate) {
		this.corporate = corporate;
	}
	public String getBank() {
		return bank;
	}
	public void setBank(String bank) {
		this.bank = bank;
	}
	public String getBank_account() {
		return bank_account;
	}
	public void setBank_account(String bank_account) {
		this.bank_account = bank_account;
	}
	public String getTax_rate() {
		return tax_rate;
	}
	public void setTax_rate(String tax_rate) {
		this.tax_rate = tax_rate;
	}
	public String getBusiness_license() {
		return business_license;
	}
	public void setBusiness_license(String business_license) {
		this.business_license = business_license;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCtime() {
		return ctime;
	}
	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getDepartmentName() {
		return departmentName;
	}
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
	public String getStaffName() {
		return staffName;
	}
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	public Integer getAdvance_balance() {
		return advance_balance;
	}
	public void setAdvance_balance(Integer advance_balance) {
		this.advance_balance = advance_balance;
	}
	public Integer getPayable_balance() {
		return payable_balance;
	}
	public void setPayable_balance(Integer payable_balance) {
		this.payable_balance = payable_balance;
	}
	
	
}
